package com.wave.wavesystem.serve.pojo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.wave.common.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Table(value = "post")
@EqualsAndHashCode(callSuper = true)
public class Post extends BaseEntity {

    @Column(value = "authorId", comment = "作者id")
    private Long authorId;

    @Column(value = "title", comment = "标题")
    private String title;

    @Column(value = "desc", comment = "描述")
    private String desc;

    @Column(value = "content", comment = "文章内容")
    private String content;

    @Column(value = "publishTime", comment = "发布时间")
    private String publishTime;

    @Column(value = "status", comment = "文章状态 0未发布 1审核中 2已发布 3封禁")
    private Integer status;

    @Column(value = "stars", comment = "收藏数")
    private Integer stars;

    @Column(value = "views", comment = "文章查看数")
    private Integer views;

    @Column(value = "comments", comment = "评论数")
    private Integer comments;

}